
// 获取彩票大厅顶部数据
/**
 * @param {Object} self 调用该方法的this
 */

function getTypeMessageDataFn(self){
    let params = {lottery_id: self.$route.params.caizhongID}
    self.axios
          .get("hall/getObtainLotteryInfo", {params})
          .then(res => {
            if (res.data.status) {
              self.lotteryMessage = res.data.data.lotteryData;
              self.countdownData = res.data.data.countdown_time;
              self.toLivePic = res.data.data.live;
              self.lotteryLogo = self.lotteryMessage.logos;
              self.toLivePicUrl = self.toLivePic.url;
            } else {
              self.log(res.data.message);
            }
          })
          .catch(err => {
            self.log(err);
          });
}
export default getTypeMessageDataFn;